<?php

if(!isset($_SESSION))
{
    session_start();
}
if( !function_exists('__autoload') )
{
    function __autoload($class_name) {
    require_once $class_name . '.php';
    }
}


?>
<select  class="inputTexto" id="selectUnidade" name="selectUnidade" onchange="">
       <option value="0" id="0">Selecione uma Unidade</option>
       <?php
	         $campusDao = new Campus();
	         $campusList = $campusDao->CarregarTodosCampusMenos($_GET['campusId']);

	         foreach($campusList as $campus){
	            echo "<option value='$campus->id' id='$campus->id'>$campus->nome</option>"; 
	         }
	   ?>
</select>
<img src='templates/btselecionar.JPG' style='position:absolute;left:200px;top:7px;width:95px;heght:85px' onClick="window.opener.SelecionarCampus(document.getElementById('selectUnidade').value, <?php echo $_GET['idLinha'];?> ); window.close();"></img>		